﻿using AmiDraw.Lib;
using AmiDraw.Lib.Models;
using PropertyChanged;

namespace AmiDraw.Editor.Model
{
    [AddINotifyPropertyChangedInterface]
    public class ObservableCard : AcCard
    {

        public void ReplaceBy(ObservableCard card)
        {
            foreach (var propertyInfo in card.GetType().GetProperties())
            {
                propertyInfo.SetValue(this, (propertyInfo.GetValue(card)));
            } 
        }
    }
}
